Document Handling
SELECT HPDFDOC / START HPDFDOC / END HPDFDOC / ABORT HPDFDOC
SELECT HPDFDOC:
This is the command to initialize the HPDFDOC. This is the first command to be used it for HMG_HPDF invoke. If you call any other command before calling this command, you will get an error that PDF object is not founding.
User can specify his own paper length and width also. The maximum paper length/width is 5080 mm.
All the available paper sizes it has listed in hmg_hpdf.ch.
Syntax:
SELECT HPDFDOC cPDFFile ;
[ ORIENTATION nOrientation ] ;
[ PAPERSIZE nPaperSize ] ;
[ PAPERLENGTH nPaperLength ] ;
[ PAPERWIDTH nPaperWidth ]
Source code Example:
SELECT HPDFDOC "sample.pdf"
SELECT HPDFDOC "sample.pdf" ORIENTATION HPDF_ORIENT_LANDSCAPE
SELECT HPDFDOC "sample.pdf" PAPERSIZE HPDF_PAPER_LEGAL
SELECT HPDFDOC "sample.pdf" PAPERLENGTH 300 PAPERWIDTH 300
START HPDFDOC:
This command is been used to start the HPDFDOC.
Syntax:
START HPDFDOC
Source code Example:
START HPDFDOC
END HPDFDOC:
This command is been used to close the HPDFDOC and create the PDF file as mentioned in the SELECT HPDFDOC command.
Until this command is been executed the PDF file will not be created.
Syntax:
END HPDFDOC
Source code Example:
END HPDFDOC
ABORT HPDFDOC:
This command is been used to close the HPDFDOC and abort the PDF file creation process.
If this command is executed the PDF file will not be created.
Syntax:
ABORT HPDFDOC
Source code Example:
ABORT HPDFDOC